import 'package:flutter/services.dart';
import '../utils/log.dart';

class PrinterPlguin {
  static const MethodChannel _channel =
  MethodChannel('com.example.flutter_demo2/printer');

  static void add(int n1, int n2) async {
    Map<String, dynamic> map = {};
    map["p1"] = 1;
    map["p2"] = 2;
    final ret = await _channel.invokeMethod("add", map);
    Log.i(ret.toString());
  }
}